Partial Sums in Multidimensional Arrays
نویسندگان
چکیده
This problem comes in two distinct avors In query mode preprocessing is allowed and q is a query to be an swered on line In o line mode we are given the array A and a set of d rectangles q qm and we must com pute the m sums A qi Partial sum is a special case of the classical orthogonal range searching problem Given n weighted points in d space and a query d rectangle q compute the cumulative weight of the points in q see e g The dynamic version of partial sum in query mode was studied by Fredman who showed that a mixed sequence of n insertions deletions and queries may require n log n time which is optimal Willard and Lueker This re sult was partially extended to groups by Willard in For the case where only insertions and queries are al lowed a lower bound of n log n log log n was proven in the one dimensional case Yao and later extended to n log n log log n d for any xed dimension d Chazelle Regarding static one dimensional partial sum Yao proved that if m units of storage are used then any query can be answered in time O m n which is optimal in the arithmetic model The function m n is the func tional inverse of Ackermann s function de ned by Tarjan See also Alon and Schieber for related upper and lower bounds Our main results are a nonlinear lower bound for one dimensional partial sum in o line mode and a space time tradeo for partial sum in query mode in any xed di mension More precisely we prove that for any n and m there exist m partial sums whose evaluations require n m m n time This is a rare case where the func tion arises in an o line problem Noticeable instances are the complexity of union nd Tarjan and the length of Davenport Schinzel sequences Hart and Sharir Agar wal et al Interestingly the proof technique we use does not involve reductions from these problems Our result im plies that given a sequence of n numbers computing partial sums over a well chosen set of n intervals requires a nonlin ear number of additions This might come as a surprise in light of the fact that there is a trivial linear time algorithm as soon as we allow subtraction The lower bound can be regarded as a generalization of a result of Tarjan con cerning the o line evaluation of functions de ned over the paths of a tree As in our result also leads to an im proved lower bound on the minimum depth of a monotone circuit for computing conjunctions The other contribution of this paper is an algorithm which can answer any partial sum query in time O d m n where m is the amount of storage available This generalizes Yao s one dimensional upper bound to xed arbitrary dimension d Since our algorithm works on a RAM we can use it as the inner loop of standard multidimensional search ing structures For example consider the classical orthogo nal range searching problem on n weighted points in d space Lueker and Willard have described a data structure of size O n log n which can answer any range query in time O log n over a semigroup We improve the time bound to O n log n The remainder of this abstract is devoted to the proofs of the lower and upper bounds Except for a few technical lemmas whose proofs have been omitted our exposition is complete and self contained
منابع مشابه
A central limit theorem for triangular arrays of weakly dependent random variables
We derive a central limit theorem for triangular arrays of possibly nonstationary random variables satisfying a condition of weak dependence in the sense of Doukhan and Louhichi (1999). The proof uses an apparently new variant of the Lindeberg method where the behavior of the partial sums is compared to that of partial sums of dependent Gaussian random variables. We also discuss a few applicati...
متن کاملComplete convergence for arrays of minimal order statistics
For arrays of independent Pareto random variables, this paper establishes complete convergence for weighted partial sums for the smaller order statistics within each row. This result improves on past strong laws. Moreover, it shows that we can obtain a finite nonzero limit for our normalized partial sums under complete convergence even though the first moment of our order statistics is infinite.
متن کاملOptimal Reconfiguration of Solar Photovoltaic Arrays Using a Fast Parallelized Particle Swarm Optimization in Confront of Partial Shading
Partial shading reduces the power output of solar modules, generates several peak points in P-V and I-V curves and shortens the expected life cycle of inverters and solar panels. Electrical array reconfiguration of PV arrays that is based on changing the electrical connections with switching devices, can be used as a practical solution to prevent such problems. Valuable studies have been perfor...
متن کاملMean Convergence Theorem for Multidimensional Arrays of Random Elements in Banach Spaces
where (n1,n2, . . . ,nd)= n∈ Z+. Recently, Thanh [11] proved (1.1) under condition of uniform integrability of {|Xn|p, n∈ Z+}. Mean convergence theorems for sums of random elements Banach-valued are studied by many authors. The reader may refer to Wei and Taylor [12], Adler et al. [2], Rosalsky and Sreehari [9], or more recently, Rosalsky et al. [10], Cabrera and Volodin [3]. However, we are un...
متن کاملOn Complexity of Matrix Scaling
The Line Sum Scaling problem for a nonnegative matrix A is to find positive definite diagonal matrices Y , Z which result in prescribed row and column sums of the scaled matrix Y AZ. The Matrix Balancing problem for a nonnegative square matrix A is to find a positive definite diagonal matrix X such that the row sums in the scaled matrix XAX are equal to the corresponding column sums. We demonst...
متن کاملComplete Convergence of the Maximum Partial Sums for Arrays of Rowwise of AANA Random Variables
i=1 X ni | is investigated, and some new results are obtained, where {X ni , i ≥ 1, n ≥ 1} is an array of rowwise AANA random variables and {a n , n ≥ 1} is a sequence of positive real numbers. As an application, the Chung-type strong law of large numbers for arrays of rowwise AANA random variables is obtained.The results extend and improve the corresponding ones of Hu and Taylor (1997) for arr...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2006